﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Contra_print.aspx.cs" ValidateRequest="false" Inherits="Main_Accounts_VoucherPrint_Contra_print" Culture="en-GB" %>
<%@ PreviousPageType VirtualPath="~/Main/Accounts/VoucherDisplay/Contra_view.aspx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Contra Voucher Print</title>
    <style type="text/css" >
        .gridview
        {
            border:0;
           
        }
        .gridview th
        {
         font-weight:normal;
         padding:2px;
         border:0px solid white;
        }
        .gridtd
        {
            text-align:right;
            padding:5px;
            border:0px solid #ffffff;
         }
         .debit-left
          {
            border-left:solid 1px black;
          }
    </style>
</head>
<body>
    <form id="form1" runat="server">
       <center>
        <div>
            
            <table>
                <tr>
                  <td style="font-size:large; font-weight:bold;"><asp:Label ID="lblcompanyname" runat="server"></asp:Label></td>
                </tr>
                 <tr>
                  <td><asp:Label ID="lbladd1" runat="server"></asp:Label></td>
                </tr>
               <tr>
                  <td><asp:Label ID="lbladd2" runat="server" ></asp:Label></td>
                </tr>
                <tr>
                  <td><asp:Label ID="lbladd3" runat="server"></asp:Label></td>
                </tr>
                <tr>
                  <td><asp:Label ID="lbladd4" runat="server"></asp:Label></td>
                </tr>
                <tr>
                  <td><asp:Label ID="lblplace" runat="server"></asp:Label>&nbsp;<asp:Label id="lblpinno" runat="server"></asp:Label></td>
                </tr>
                <tr>
                  <td><asp:Label ID="lblpanname" runat="server"></asp:Label><asp:Label ID="panno" runat="server"></asp:Label></td>
                </tr>
                <tr>
                  <td><asp:Label ID="lblvatname" runat="server">&nbsp;</asp:Label><asp:Label ID="lblvatno" runat="server"></asp:Label></td>
               </tr>
                <tr>
                  <td style="font-size:large; font-weight:bold;"><asp:Label ID="lbltransactiontype" runat="server"></asp:Label></td>
               </tr>
            </table>
            
        </div>
    <div>
    <div style="margin-left:5%; margin-top:10px; margin-right:5%; width:90%" align="center">
                <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label>
              </div>
              <div  style="width:100%; margin-left:20px; margin-right:30px;" class="gridview">
      <asp:DataList ID="dtlcontra" runat="server"
                 Width="60%" 
                 onitemdatabound="dtlcontra_ItemDataBound">
                <ItemTemplate>
                     <table width="100%" cellspacing="0">
                         <tr>
                           <td colspan="2"><div style="float:left; padding-left:10px;">Voucher-No: &nbsp;<asp:Label ID="ltrvoucherno" style="font-weight:bold;" runat="server" Text='<%#Eval("TransactionNumber") %>'/><asp:HiddenField ID="htrans_id" runat="server"  Value='<%#Eval("TransactionId") %>'/></div>
                          <div style="float:right; padding-right:10px;">Date : &nbsp;<b><%#string.Format("{0:dd-MMM-yyyy}", Eval("TransactionDate"))%></b></div>
                           </td>
                         </tr>
                         <tr>
                           <td colspan="2" style="padding:0px 10px 0px 10px; width:100%;">
                             <asp:GridView ID="gridContra" runat="server" CssClass="gridview"  DataKeyNames="TransactionSerial" AutoGenerateColumns="false"
                                   onrowdatabound="gridContra_RowDataBound" Width="100%"   ShowFooter="true">
                               <Columns>
                                <asp:TemplateField  HeaderStyle-Font-Bold="true" HeaderText="Particulars" ItemStyle-CssClass="gridtd" ItemStyle-HorizontalAlign="Left">
                                    <ItemTemplate>
                                        <asp:Label ID="LblParticular" runat="server" Text='<%#Eval("particulars") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderStyle-Font-Bold="true"  HeaderText="Debit" DataField="Debit" HeaderStyle-HorizontalAlign="Right" ItemStyle-CssClass="gridtd" />
                                <asp:BoundField HeaderStyle-Font-Bold="true" HeaderText="Credit" DataField="Credit" HeaderStyle-HorizontalAlign="Right" ItemStyle-CssClass="gridtd"/>
                               </Columns>
                             </asp:GridView>
                           </td>                               
                         </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
            <br />
            <br />
            
            </div>
            </div>
            <table cellpadding="0" cellspacing="0" style="width:60%; margin-left:5%;">
                 <tr>
                    <td align="left">Receiver's Signature:</td>
                    <td align="right">Authorised Signatory</td>
                 </tr>
            </table>
          </center>
     </form>
</body>
</html>
